package com.example.req;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

@TableName("gaojunyu_user")
public class LoginUserSaveReq {
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private long userid;
    private String username;
    private String userpassword;
    private int useridentity;


    public long getUserid() {
        return userid;
    }

    public void setUserid(long userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword;
    }

    public int getUseridentity() {
        return useridentity;
    }

    public void setUseridentity(int useridentity) {
        this.useridentity = useridentity;
    }

    @Override
    public String toString() {
        return "User{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", userpassword='" + userpassword + '\'' +
                ", useridentity=" + useridentity +
                '}';
    }
}
